package com.gyh.stlserver.mapper;

import com.gyh.stlserver.entity.Course;
import com.gyh.stlserver.vo.CourseVo;

import java.util.Date;
import java.util.List;

public interface CourseMapper {
    List<Course> selectCourseByCid(Integer cid);
    List<CourseVo> select(Course course);

    Course selectCourseByRoomIdAndTime(Integer roomId, Date startTime,Date endTime);

    Course selectCourseByCidAndTime(Integer coachId, Date startTime, Date endTime);

    int insert(Course course);

    int update(Course course);

    Course selectCourseById(Integer id);

    int delete(Integer id);

    List<Course> selectAll();
}
